package com.kehutong.wwin.service.entity;

import java.time.LocalDateTime;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

/**
 * <pre>
 * 应用管理
 * </pre>
 * 
 * @author liuzhen (liuxing521a@163.com)
 * @createTime 2020年09月14日 上午9:43:38
 */
public class Suite extends Entity {

	private static final long serialVersionUID = -70496797954415955L;

	protected Suite(String id) {
		super(id);
	}
	
	@Column(comment = "企业id")
	private String corpId;
	
	@Column(comment = "应用名称")
	private String name;
	
	@Column(comment = "应用ID(自建应用、第三方应用)")
	private String appId;
	
	@Column(length = 64, comment = "应用secret(自建应用、第三方应用)")
	private String secret;
	
	@Column(comment = "应用事件接收token")
	private String token;
	
	@Column(length = 64, comment = "应用事件接收EncodingAESKey")
	private String encodingAESKey;
	
	@Column(length = 512, comment = "应用accessToken")
	private String accessToken;

	@Column(comment = "应用accessToken过期时间")
	private LocalDateTime accessTokenExpiredTime;
	
	@Column(comment = "逻辑删除")
	private boolean deleted;
	
	public String getCorpId() {
		return corpId;
	}

	public void setCorpId(String corpId) {
		this.corpId = corpId;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getSecret() {
		return secret;
	}

	public void setSecret(String secret) {
		this.secret = secret;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getEncodingAESKey() {
		return encodingAESKey;
	}

	public void setEncodingAESKey(String encodingAESKey) {
		this.encodingAESKey = encodingAESKey;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public LocalDateTime getAccessTokenExpiredTime() {
		return accessTokenExpiredTime;
	}

	public void setAccessTokenExpiredTime(LocalDateTime accessTokenExpiredTime) {
		this.accessTokenExpiredTime = accessTokenExpiredTime;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}
}
